﻿namespace WMS6.Web.InventoryMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="AdjustmentDetailInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class AdjustmentDetailInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private DateTime AdjustmentDateField;
        [OptionalField]
        private string AdjustmentIDField;
        [OptionalField]
        private decimal CaseCntField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private double CubeField;
        [OptionalField]
        private string DescrField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private double GrossWgtField;
        [OptionalField]
        private decimal InnerPackField;
        [OptionalField]
        private string IsGenPutAwayField;
        [OptionalField]
        private int LineIDField;
        [OptionalField]
        private string LocField;
        [OptionalField]
        private string LotField;
        [OptionalField]
        private string LpnIDField;
        [OptionalField]
        private double NetWgtField;
        [OptionalField]
        private double OtherUnit1Field;
        [OptionalField]
        private double OtherUnit2Field;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PackIDField;
        [OptionalField]
        private decimal PalletField;
        [OptionalField]
        private decimal QtyField;
        [OptionalField]
        private string ReasonCodeField;
        [OptionalField]
        private string ReceiptIDField;
        [OptionalField]
        private int ReceiptLineIDField;
        [OptionalField]
        private string ReferenceIDField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SkuIDField;
        [OptionalField]
        private string TransIDField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UomIDField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public DateTime AdjustmentDate
        {
            get
            {
                return this.AdjustmentDateField;
            }
            set
            {
                if (!this.AdjustmentDateField.Equals(value))
                {
                    this.AdjustmentDateField = value;
                    this.RaisePropertyChanged("AdjustmentDate");
                }
            }
        }

        [DataMember]
        public string AdjustmentID
        {
            get
            {
                return this.AdjustmentIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AdjustmentIDField, value))
                {
                    this.AdjustmentIDField = value;
                    this.RaisePropertyChanged("AdjustmentID");
                }
            }
        }

        [DataMember]
        public decimal CaseCnt
        {
            get
            {
                return this.CaseCntField;
            }
            set
            {
                if (!this.CaseCntField.Equals(value))
                {
                    this.CaseCntField = value;
                    this.RaisePropertyChanged("CaseCnt");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public double Cube
        {
            get
            {
                return this.CubeField;
            }
            set
            {
                if (!this.CubeField.Equals(value))
                {
                    this.CubeField = value;
                    this.RaisePropertyChanged("Cube");
                }
            }
        }

        [DataMember]
        public string Descr
        {
            get
            {
                return this.DescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DescrField, value))
                {
                    this.DescrField = value;
                    this.RaisePropertyChanged("Descr");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public double GrossWgt
        {
            get
            {
                return this.GrossWgtField;
            }
            set
            {
                if (!this.GrossWgtField.Equals(value))
                {
                    this.GrossWgtField = value;
                    this.RaisePropertyChanged("GrossWgt");
                }
            }
        }

        [DataMember]
        public decimal InnerPack
        {
            get
            {
                return this.InnerPackField;
            }
            set
            {
                if (!this.InnerPackField.Equals(value))
                {
                    this.InnerPackField = value;
                    this.RaisePropertyChanged("InnerPack");
                }
            }
        }

        [DataMember]
        public string IsGenPutAway
        {
            get
            {
                return this.IsGenPutAwayField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsGenPutAwayField, value))
                {
                    this.IsGenPutAwayField = value;
                    this.RaisePropertyChanged("IsGenPutAway");
                }
            }
        }

        [DataMember]
        public int LineID
        {
            get
            {
                return this.LineIDField;
            }
            set
            {
                if (!this.LineIDField.Equals(value))
                {
                    this.LineIDField = value;
                    this.RaisePropertyChanged("LineID");
                }
            }
        }

        [DataMember]
        public string Loc
        {
            get
            {
                return this.LocField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocField, value))
                {
                    this.LocField = value;
                    this.RaisePropertyChanged("Loc");
                }
            }
        }

        [DataMember]
        public string Lot
        {
            get
            {
                return this.LotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotField, value))
                {
                    this.LotField = value;
                    this.RaisePropertyChanged("Lot");
                }
            }
        }

        [DataMember]
        public string LpnID
        {
            get
            {
                return this.LpnIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LpnIDField, value))
                {
                    this.LpnIDField = value;
                    this.RaisePropertyChanged("LpnID");
                }
            }
        }

        [DataMember]
        public double NetWgt
        {
            get
            {
                return this.NetWgtField;
            }
            set
            {
                if (!this.NetWgtField.Equals(value))
                {
                    this.NetWgtField = value;
                    this.RaisePropertyChanged("NetWgt");
                }
            }
        }

        [DataMember]
        public double OtherUnit1
        {
            get
            {
                return this.OtherUnit1Field;
            }
            set
            {
                if (!this.OtherUnit1Field.Equals(value))
                {
                    this.OtherUnit1Field = value;
                    this.RaisePropertyChanged("OtherUnit1");
                }
            }
        }

        [DataMember]
        public double OtherUnit2
        {
            get
            {
                return this.OtherUnit2Field;
            }
            set
            {
                if (!this.OtherUnit2Field.Equals(value))
                {
                    this.OtherUnit2Field = value;
                    this.RaisePropertyChanged("OtherUnit2");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PackID
        {
            get
            {
                return this.PackIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PackIDField, value))
                {
                    this.PackIDField = value;
                    this.RaisePropertyChanged("PackID");
                }
            }
        }

        [DataMember]
        public decimal Pallet
        {
            get
            {
                return this.PalletField;
            }
            set
            {
                if (!this.PalletField.Equals(value))
                {
                    this.PalletField = value;
                    this.RaisePropertyChanged("Pallet");
                }
            }
        }

        [DataMember]
        public decimal Qty
        {
            get
            {
                return this.QtyField;
            }
            set
            {
                if (!this.QtyField.Equals(value))
                {
                    this.QtyField = value;
                    this.RaisePropertyChanged("Qty");
                }
            }
        }

        [DataMember]
        public string ReasonCode
        {
            get
            {
                return this.ReasonCodeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReasonCodeField, value))
                {
                    this.ReasonCodeField = value;
                    this.RaisePropertyChanged("ReasonCode");
                }
            }
        }

        [DataMember]
        public string ReceiptID
        {
            get
            {
                return this.ReceiptIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReceiptIDField, value))
                {
                    this.ReceiptIDField = value;
                    this.RaisePropertyChanged("ReceiptID");
                }
            }
        }

        [DataMember]
        public int ReceiptLineID
        {
            get
            {
                return this.ReceiptLineIDField;
            }
            set
            {
                if (!this.ReceiptLineIDField.Equals(value))
                {
                    this.ReceiptLineIDField = value;
                    this.RaisePropertyChanged("ReceiptLineID");
                }
            }
        }

        [DataMember]
        public string ReferenceID
        {
            get
            {
                return this.ReferenceIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReferenceIDField, value))
                {
                    this.ReferenceIDField = value;
                    this.RaisePropertyChanged("ReferenceID");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SkuID
        {
            get
            {
                return this.SkuIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SkuIDField, value))
                {
                    this.SkuIDField = value;
                    this.RaisePropertyChanged("SkuID");
                }
            }
        }

        [DataMember]
        public string TransID
        {
            get
            {
                return this.TransIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransIDField, value))
                {
                    this.TransIDField = value;
                    this.RaisePropertyChanged("TransID");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UomID
        {
            get
            {
                return this.UomIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UomIDField, value))
                {
                    this.UomIDField = value;
                    this.RaisePropertyChanged("UomID");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

